package com.ruoyi.Papers.service.impl;

import java.awt.print.Paper;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.Papers.mapper.PapersMapper;
import com.ruoyi.Papers.domain.Papers;
import com.ruoyi.Papers.service.IPapersService;

/**
 * 论文表Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@Service
public class PapersServiceImpl extends ServiceImpl<PapersMapper, Papers> implements IPapersService
{
    @Autowired
    private PapersMapper papersMapper;

    /**
     * 查询论文表
     * 
     * @param paperId 论文表主键
     * @return 论文表
     */
    @Override
    public Papers selectPapersByPaperId(Long paperId)
    {
        return papersMapper.selectPapersByPaperId(paperId);
    }

    /**
     * 查询论文表列表
     * 
     * @param papers 论文表
     * @return 论文表
     */
    @Override
    public List<Papers> selectPapersList(Papers papers)
    {
        return papersMapper.selectPapersList(papers);
    }

    /**
     * 新增论文表
     * 
     * @param papers 论文表
     * @return 结果
     */
    @Override
    public int insertPapers(Papers papers)
    {
        return papersMapper.insertPapers(papers);
    }

    /**
     * 修改论文表
     * 
     * @param papers 论文表
     * @return 结果
     */
    @Override
    public int updatePapers(Papers papers)
    {
        return papersMapper.updatePapers(papers);
    }

    /**
     * 批量删除论文表
     * 
     * @param paperIds 需要删除的论文表主键
     * @return 结果
     */
    @Override
    public int deletePapersByPaperIds(Long[] paperIds)
    {
        return papersMapper.deletePapersByPaperIds(paperIds);
    }

    /**
     * 删除论文表信息
     * 
     * @param paperId 论文表主键
     * @return 结果
     */
    @Override
    public int deletePapersByPaperId(Long paperId)
    {
        return papersMapper.deletePapersByPaperId(paperId);
    }
}
